package com.netty.bfport.http.domain.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: zhaoyang05
 * @Data: 2022/3/23 13:23
 * @Description
 */
@Data
public class TUserDTO implements Serializable {
    private static final long serialVersion = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 姓名
     */
    @NotNull(message = "name不能为空")
    private String name;

    /**
     * 性别0女1男
     */
    private Integer sex;

    /**
     * 手机号
     */
    @Size(min = 11,max = 11,message = "手机号长度不符合规则")
//    @Pattern(regexp ="^1(3|5|7|8|4)\\\\d{9}",message = "手机号不符合规则")
    private String telephone;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 头像
     */
    private String header;

}
